package com.algorithm.hqy;

/**
 * @Classname Test
 * @Date 2019/9/16 11:28
 * @auther by hqy
 */
public class Test {

    public static void main(String[] args) {
//        System.out.println("hello.zhangcewen!!!");
      /*  ArrayQueue arrayQueue = new ArrayQueue(4);
        arrayQueue.addNum(1);
        arrayQueue.addNum(2);
        arrayQueue.addNum(3);
        arrayQueue.addNum(666);
        arrayQueue.showQuere();
        arrayQueue.getNum();
        arrayQueue.showQuere();
        arrayQueue.getNum();
        arrayQueue.showQuere();
        arrayQueue.getNum();
        arrayQueue.showQuere();
        arrayQueue.getNum();*/
        CircleArrayQueue circleArrayQueue = new CircleArrayQueue(5);
        circleArrayQueue.addNum(1);
        circleArrayQueue.addNum(2);
        circleArrayQueue.addNum(3);
        circleArrayQueue.addNum(666);
        //circleArrayQueue.addNum(7777);
        circleArrayQueue.showQuere();
        circleArrayQueue.getNum();
        circleArrayQueue.showQuere();
        circleArrayQueue.addNum(3);
        circleArrayQueue.showQuere();
        circleArrayQueue.getNum();
        circleArrayQueue.addNum(3);
        circleArrayQueue.showQuere();
        circleArrayQueue.getNum();
        circleArrayQueue.addNum(3);
        circleArrayQueue.showQuere();
        circleArrayQueue.getNum();
        circleArrayQueue.addNum(3);
        circleArrayQueue.showQuere();
        circleArrayQueue.getNum();
        circleArrayQueue.addNum(3);
    }

}
